@isTest private class UserPermissionsTest
{
    static testMethod void myUnitTest() 
    {
    	try
    	{

            GenerateEnvironmentTest.gen();
            Test.startTest();

			UserPermissions up = new UserPermissions();
			
			up.setId( GenerateEnvironmentTest.newUser.Id );
			up.setOwnerId( GenerateEnvironmentTest.newUser.Id );
			up.setTeam( GenerateEnvironmentTest.newDiscussionForum.Id );
			up.setObjectType( GenerateEnvironmentTest.newDiscussionForum.Id );
			up.setPermissions();
			
			up.getId();
			up.getTeam();
			up.getObjectType();
			up.getCanCreate();
			up.getCanManage();
			up.getCanComment();
			up.getCanView();
			UserPermissions.getCanManageStatic();
                        
            Test.stopTest();
        }
        catch(Exception e)
        {
            throw e;
        }
    }
}